﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElingOA6_DSJCJ.BLL
{
    /// <summary>
    /// 问卷调查 逻辑类
    /// </summary>
    public class Paper
    {
        public Paper()
        {
        }
        /// <summary>
        /// 问卷调查数据类
        /// </summary>
        private DAL.Paper paperDAL = new DAL.Paper();
        /// <summary>
        /// 得到一个对象实体
        /// <creator>wangl</creator>
        /// <date>2013-09-11</date>
        /// </summary>
        public ElingOA6_DSJCJ.Model.Paper GetModel(decimal paperId)
        {
            return paperDAL.GetModel(paperId);
        }
        /// <summary>
        ///  判断当前登陆人员是否有权限对指定问卷的查看权限
        /// <creator>wangl</creator>
        /// <date>2013-11-07</date>
        /// </summary>
        /// <param name="emplNo"></param>
        /// <param name="paperId"></param>
        /// <param name="entityNo"></param>
        /// <returns></returns>
        public bool IsPaperAuthorityForEmpl(string emplNo, string deptNo, decimal paperId, string entityNo)
        {
            return paperDAL.IsPaperAuthorityForEmpl(emplNo,deptNo, paperId, entityNo);
        }
    }
}
